<h1>Blog posts</h1>

<h2>Edit Post</h2>

<?php
/*echo $this->Form->create('Post');
echo $this->Form->input('title',array('label'=>'T&iacute;tulo','value'=>$post['Post']['title']));
echo $this->Form->input('body', array('rows' => '3','label'=>'Texto','value'=>$post['Post']['body']));
echo $this->Form->end('Save Post');*/

echo $this->Form->create('Post', array('action' => 'updatepost'));
echo $this->Form->input('title');
echo $this->Form->input('body', array('rows' => '3'));
echo $this->Form->input('id', array('type' => 'hidden'));
echo $this->Form->end('Save Post');
?>

<p><?php echo $this->Html->link('volver',array('controller'=>'posts','action'=>'index')) ?></p>

